import service from "@/utils/request";

// 审核通过技术审核
export const approveIdentities = (data) => {
    return service({
      url: "/identity/approve",
      method: "put",
      data,
    });
  };
  
  // 审核不通过技术审核
  export const rejectIdentities = (data) => {
    return service({
      url: "/identity/reject",
      method: "put",
      data,
    });
  };

// 获取所有未审核身份认证记录
export const getPendingIdentities = () => {
  return service({
    url: "/identity/getPending",
    method: "get",
  });
};

// 获取所有已审核身份认证记录
export const getApprovedIdentities = () => {
  return service({
    url: "/identity/getApproved",
    method: "get",
  });
};

// 审核通过技术审核
export const approveTechnicalVerification = (data) => {
  return service({
    url: "/technical/approve",
    method: "put",
    data,
  });
};

// 审核不通过技术审核
export const rejectTechnicalVerification = (data) => {
  return service({
    url: "/technical/reject",
    method: "put",
    data,
  });
};

// 获取所有未审核技术审核
export const getPendingTechnicalVerification = () => {
  return service({
    url: "/technical/getPending",
    method: "get",
  });
};

// 获取所有已审核技术审核
export const getApprovedTechnicalVerification = () => {
  return service({
    url: "/technical/getApproved",
    method: "get",
  });
};


// 审核通过学历认证
export const approveEducationVerification = (data) => {
  return service({
    url: "/education/approve",
    method: "put",
    data,
  });
};

// 审核不通过学历认证
export const rejectEducationVerification = (data) => {
  return service({
    url: "/education/reject",
    method: "put",
    data,
  });
};
// 获取所有未审核技术审核
export const getPendingEducationVerification = () => {
  return service({
    url: "/education/getPending",
    method: "get",
  });
};

// 获取所有已审核技术审核
export const getApprovedEducationVerification = () => {
  return service({
    url: "/education/getApproved",
    method: "get",
  });
};
